package com.gljx.web.service.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gljx.web.Entity.RefuelCardRegEntry;
import com.gljx.web.dao.RefuelCardRegEntryMapper;
import com.gljx.web.service.RefuelCardRegEntryService;

@Service
@Transactional
public class RefuelCardRegEntryServiceImpl implements RefuelCardRegEntryService {

	@Autowired
	private RefuelCardRegEntryMapper refuelCardRegEntryMapper;

	
	/**
	 * 需要三个参数
	 * beginTime ,endTime ,fid(油品FID)
	 */
	@Override
	public List<RefuelCardRegEntry> selRefuelCardRegEntry(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return refuelCardRegEntryMapper.selRefuelCardRegEntry(map);
	}


	@Override
	public Double selFeflueBeginBalance(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return refuelCardRegEntryMapper.selFeflueBeginBalance(map);
	}


	@Override
	public Double selFeflueBeginBalances(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return refuelCardRegEntryMapper.selFeflueBeginBalances(map);
	}


	@Override
	public Double selFeflueCfamout(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return refuelCardRegEntryMapper.selFeflueCfamout(map);
	}


	@Override
	public List<RefuelCardRegEntry> selRefuelCardRegEntryByParentId(String parentId,String carName) {
		// TODO Auto-generated method stub
		return refuelCardRegEntryMapper.selRefuelCardRegEntryByParentId(parentId,carName);
	}


	@Override
	public int deleteByParentId(String parentid) {
		// TODO Auto-generated method stub
		return refuelCardRegEntryMapper.deleteByParentId(parentid);
	}

	@Override
	public List<RefuelCardRegEntry> selectAll(String parntId) {

		return refuelCardRegEntryMapper.selRefuelCardRegEntryByParentIdALL(parntId);
	}


}
